﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pibby.Core
{
	/// <summary>
	/// Used in episode related events
	/// </summary>
	public class EpisodeEventArgs : System.EventArgs
	{
		public EpisodeEventArgs(int id, bool selected)
		{
			this.DbKeys = new List<int>() { id };
			this.Selected = selected;
		}

		public EpisodeEventArgs(IList<int> ids, bool selected)
		{
			this.DbKeys = new List<int>(ids);
			this.Selected = selected;
		}

		public List<int> DbKeys
		{
			get;
			private set;
		}

		public bool Selected
		{
			get;
			private set;
		}
	}

	public class EpisodeDownloadEventArgs : System.EventArgs
	{
		public EpisodeDownloadEventArgs(IEnumerable<int> keys)
		{
			this.DbKeys = new List<int>(keys);
		}

		public List<int> DbKeys
		{
			get;
			private set;
		}
	}
}
